<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="http://schemas.datacontract.org/2004/07/DO.Workflows" xmlns:ser="http://schemas.microsoft.com/2003/10/Serialization/" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/DO.Workflows" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:import schemaLocation="http://xd2/SVC.Workflows/WorkflowDesignService.svc?xsd=xsd3" namespace="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
  <xs:import schemaLocation="http://xd2/SVC.Workflows/WorkflowDesignService.svc?xsd=xsd4" namespace="http://schemas.datacontract.org/2004/07/System" />
  <xs:import schemaLocation="http://xd2/SVC.Workflows/WorkflowDesignService.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/" />
  <xs:complexType name="WorkflowDesign">
    <xs:sequence>
      <xs:element minOccurs="0" name="Author" nillable="true" type="xs:string" />
      <xs:element xmlns:q1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="Components" nillable="true" type="q1:ArrayOfKeyValueOfguidWorkflowComponentBase_Ply3uDN8" />
      <xs:element minOccurs="0" name="CreatedOn" type="xs:dateTime" />
      <xs:element xmlns:q2="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="FailureConnectors" nillable="true" type="q2:ArrayOfKeyValueOfguidArrayOfguidox8ieOcg" />
      <xs:element minOccurs="0" name="FileName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ModifiedOn" type="xs:dateTime" />
      <xs:element xmlns:q3="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="SuccessConnectors" nillable="true" type="q3:ArrayOfKeyValueOfguidArrayOfguidox8ieOcg" />
      <xs:element xmlns:q4="http://schemas.datacontract.org/2004/07/System" minOccurs="0" name="Version" nillable="true" type="q4:Version" />
      <xs:element minOccurs="0" name="WorkflowID" type="ser:guid" />
      <xs:element minOccurs="0" name="WorkflowName" nillable="true" type="xs:string" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="WorkflowDesign" nillable="true" type="tns:WorkflowDesign" />
  <xs:complexType name="WorkflowComponentBase">
    <xs:sequence>
      <xs:element minOccurs="0" name="ActivityType" type="tns:WorkflowActivityType" />
      <xs:element minOccurs="0" name="ComponentCategory" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ComponentID" type="ser:guid" />
      <xs:element minOccurs="0" name="ComponentIconName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ComponentImageName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="ComponentName" nillable="true" type="xs:string" />
      <xs:element xmlns:q5="http://schemas.microsoft.com/2003/10/Serialization/Arrays" minOccurs="0" name="Dependencies" nillable="true" type="q5:ArrayOfguid" />
      <xs:element minOccurs="0" name="Description" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Enabled" type="xs:boolean" />
      <xs:element minOccurs="0" name="ErrorName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="Instruction" nillable="true" type="tns:InstructionBase" />
      <xs:element minOccurs="0" name="Output" nillable="true" type="tns:ResultBase" />
      <xs:element minOccurs="0" name="OutputName" nillable="true" type="xs:string" />
      <xs:element minOccurs="0" name="X" type="xs:double" />
      <xs:element minOccurs="0" name="Y" type="xs:double" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="WorkflowComponentBase" nillable="true" type="tns:WorkflowComponentBase" />
  <xs:simpleType name="WorkflowActivityType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="Trigger" />
      <xs:enumeration value="Simple" />
      <xs:enumeration value="Composite" />
      <xs:enumeration value="Subflow" />
      <xs:enumeration value="Exception" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="WorkflowActivityType" nillable="true" type="tns:WorkflowActivityType" />
  <xs:complexType name="InstructionBase">
    <xs:sequence>
      <xs:element minOccurs="0" name="ComponentID" type="ser:guid" />
      <xs:element minOccurs="0" name="JobTicketID" type="ser:guid" />
      <xs:element minOccurs="0" name="SubmitTime" type="xs:dateTime" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="InstructionBase" nillable="true" type="tns:InstructionBase" />
  <xs:complexType name="ResultBase">
    <xs:sequence>
      <xs:element minOccurs="0" name="ComponentID" type="ser:guid" />
      <xs:element minOccurs="0" name="FinishTime" type="xs:dateTime" />
      <xs:element minOccurs="0" name="JobTicketID" type="ser:guid" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="ResultBase" nillable="true" type="tns:ResultBase" />
</xs:schema>